local heng__yiyao = fk.CreateSkill {
  name = "heng__yiyao",
}

Fk:loadTranslationTable{
  ["heng__yiyao"] = "医药",
  [":heng__yiyao"] = "每回合限一次，你可以将一张红色牌当【桃】使用。",
  ["#heng__yiyao"] = "医药：将一张红色牌当【桃】使用",
}

heng__yiyao:addEffect("viewas", {
  anim_type = "support",
  pattern = "peach",
  prompt = "#heng__yiyao",
  handly_pile = true,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and Fk:getCardById(to_select).color == Card.Red
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local c = Fk:cloneCard("peach")
    c.skillName = heng__yiyao.name
    c:addSubcard(cards[1])
    return c
  end,
  enabled_at_play = function(self, player)
    return player:usedSkillTimes(heng__yiyao.name, Player.HistoryTurn) == 0
  end,
  enabled_at_response = function(self, player, response)
    return not response and player:usedSkillTimes(heng__yiyao.name, Player.HistoryTurn) == 0
  end,
})

return heng__yiyao